package com.why.simpleboot.core.core.schedule.runner;

import com.why.simpleboot.core.extend.SimpleBootApplicationRunner;
import com.why.simpleboot.core.core.ApplicationContext;

/**
 * @program: why-simpleboot-framework
 * @description:默认的定时任务
 * @author: @why
 * @create: 2021-06-15 09:48
 **/
public class ScheduleRunner implements SimpleBootApplicationRunner {

    @Override
    public void run(ApplicationContext applicationContext) {
        applicationContext.getScheduleFactory().
                loadSchedules(applicationContext.getClassFactory(),applicationContext.getBeanFactory());
    }
}
